﻿using ITXHWEB.Models;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Web.Mvc;
using WPFExcelReport;
using WPFExcelReport.Helpers; 
using ITXHWEB.Infrastructure;
using System.Collections;
using System.Collections.Generic;
namespace ITXHWEB.Controllers
{
    public partial class VKPOSController : ITXController
    {
        
        [ChildActionOnly]
        public ActionResult SCANVKPOS(string returnUrl)
        {
            ViewBag.ReturnUrl = returnUrl;
            VKPOSModel vkp = new VKPOSModel(); 
            return PartialView(vkp);
        }
      
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult SCANVKPOS(VKPOSModel model, string returnUrl)
        {

            VKPAUF = model.VKPAUF;
            LIEFSCH = model.LIEFSCH;
            CheckVV(model);
            ViewBag.IsVKPReady = IsVKPReady;
            ManageMessageId? message = null;
            message = ManageMessageId.SetPasswordSuccess;
            TempData["message"] = message;
            TempData["VKPS"] = VKPS;
            return RedirectToAction("ITXWB06", "ITXWB06", new { TempData = TempData });
            //return View(model);
        }
       
    }
}
